export const adminRouter = [
  {
    path: '/admin',
    name: 'admin',
    component: () => import('@/modules/admin/AdminLayout.vue'),
    meta:{
      default: true,
      name: '后台管理',
    },
    children: [
      {
        path: '/admin',
        name: 'adminHome',
        meta:{
          default: true,
          name: '后台管理首页',
        },
        component: () => import('@/modules/admin/home/views/AdminHomeView.vue')
      },
      {
        path: '/admin/manager',
        name: 'adminManager',
        meta:{
          name: '权限管理',
        },
        children: [
          {
            path: '/admin/manager',
            name: 'adminManagerHome',
            meta:{
              default: true,
              name: '权限概览',
            },
            component: () => import('@/modules/admin/manager/views/AdminManagerView.vue')
          },
          {
            path: '/admin/manager/user',
            name: 'adminManagerUser',
            meta:{
              name: '用户管理',
            },
            component: () => import('@/modules/admin/manager/user/views/AdminManagerUserView.vue'),
            children: [
              {
                path: '/admin/manager/user/list',
                name: 'adminManagerUserList',
                meta:{
                  name: '用户列表',
                },
                component: () => import('@/modules/admin/manager/user/list/views/AdminManagerUserListView.vue'),
              }
            ]
          },
          {
            path: '/admin/manager/role',
            name: 'adminManagerRole',
            meta:{
              name: '角色管理',
            },
            component: () => import('@/modules/admin/manager/role/views/AdminManagerRoleView.vue')
          },
          {
            path: '/admin/manager/menu',
            name: 'adminManagerMenu',
            meta:{
              name: '菜单管理',
            },
            component: () => import('@/modules/admin/manager/menu/views/AdminManagerMenuView.vue')
          },
          {
            path: '/admin/manager/operate',
            name: 'adminManagerOperate',
            meta:{
              name: '操作管理',
            },
            component: () => import('@/modules/admin/manager/operate/views/AdminManagerOperateView.vue')
          },
          {
            path: '/admin/manager/interface',
            name: 'adminManagerInterface',
            meta:{
              name: '接口管理',
            },
            component: () => import('@/modules/admin/manager/interface/views/AdminManagerInterfaceView.vue')
          }
        ]
      },
      {
        path: '/admin/content',
        name: 'adminContent',
        meta:{
          name: '门户内容',
        },
        children:[
          {
            path: '/admin/content',
            name: 'adminContentHome',
            meta:{
              default: true,
              name: '门户内容',
            },
            component: () => import('@/modules/admin/content/views/AdminContentView.vue')
          },
          {
            path: '/admin/content/album',
            name: 'adminContentAlbum',
            meta:{
              name: '相册管理',
            },
            component: () => import('@/modules/admin/content/album/views/AdminContentAlbumView.vue'),
            children: [
              {
                path: '/admin/content/album/list',
                name: 'adminContentAlbumList',
                meta:{
                  name: '相册列表',
                },
                component: () => import('@/modules/admin/content/album/list/views/AdminContentAlbumListView.vue')
              },
              {
                path: '/admin/content/album/type',
                name: 'adminContentAlbumType',
                meta:{
                  name: '相册分类',
                },
                component: () => import('@/modules/admin/content/album/type/views/AdminContentAlbumTypeView.vue')
              },
            ]
          },
          {
            path: '/admin/content/film',
            name: 'adminContentFilm',
            meta:{
              name: '电影管理',
            },
            component: () => import('@/modules/admin/content/film/views/AdminContentFilmView.vue'),
            children: [
              {
                path: '/admin/content/film/list',
                name: 'adminContentFilmList',
                meta:{
                  name: '电影列表',
                },
                component: () => import('@/modules/admin/content/film/list/views/AdminContentFilmListView.vue')
              },
              {
                path: '/admin/content/film/type',
                name: 'adminContentFilmType',
                meta:{
                  name: '电影分类',
                },
                component: () => import('@/modules/admin/content/film/type/views/AdminContentFilmTypeView.vue')
              },
            ]
          },
        ]
      },
      {
        path: '/admin/ai',
        name: 'adminAI',
        meta:{
          name: 'AI',
        },
        children:[
          {
            path: '/admin/ai',
            name: 'adminAIHome',
            meta:{
              default: true,
              name: 'AI介绍',
            },
            component: () => import('@/modules/admin/ai/views/AdminAIView.vue')
          },
          {
            path: '/admin/ai/agent',
            name: 'adminAIAgent',
            meta:{
              name: '智能体',
            },
            component: () => import('@/modules/admin/ai/agent/views/AdminAIAgentView.vue')
          },
          {
            path: '/admin/ai/model',
            name: 'adminAIModel',
            meta:{
              name: '模型',
            },
            component: () => import('@/modules/admin/ai/model/views/AdminAIModelView.vue')
          },
        ]
      },
    ]
  },
  {
    path: '/admin/:pathMatch(.*)*',
    redirect: '/admin',
  },
]